fromDecimal <src>
Converts a number, or a string of numbers, into a hexadecimal string.
Usage
TronWeb.fromDecimal(number);
Parameters
| Parameter | Description | Data Type |
|---|---|---|
| number | String or Number | Hexadecimal string / Number |
Returns
String - The converted hex string.
Example
TronWeb.fromDecimal("12345678");
'0xbc614e'